package com.seashop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seashop.domain.Admin;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("SELECT id, password FROM admin WHERE is_delete=0 AND user_name=#{username}")
    Map<String, Object> getAdmin(String username);
}
